<?php


namespace App\Service\Cache;


use App\Constants\Redis\Cooperative;
use Hyperf\Redis\RedisFactory;

class CooperativeMenuConfigCache
{
    public function get(int $configId)
    {
        return $this->list()[$configId];
    }

    public function list()
    {
        $list = config('menus.cooperative_list');
        return $list;
    }
}